//
//  GNRTransportSelectionCell.m
//  GNRPickCard_Example
//
//  Created by LvYuan on 2017/11/2.
//  Copyright © 2017年 ly918@qq.com. All rights reserved.
//

#import "GNRTransportSelectionCell.h"
#import <SDWebImage/UIImageView+WebCache.h>
@implementation GNRTransportSelectionCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setSelectionItem:(id<GNRSelectionItemProtocol>)selectionItem{
    [super setSelectionItem:selectionItem];
    if (selectionItem.imageUrl.length) {
        [self.iconImgV sd_setImageWithURL:[NSURL URLWithString:selectionItem.imageUrl]];
    } else if (selectionItem.imageName.length) {
        self.iconImgV.image = [UIImage imageNamed:selectionItem.imageName];
    }
    self.titL.text = selectionItem.title;
    self.subTitL.text = selectionItem.subTitle;
    self.selectBtn.selected = selectionItem.selected;
}


- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
